/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gespap2009;

/**
 *
 * @author guliana
 */
public class Libro extends Articulo {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.E32E7CE4-076D-DCE5-E8EC-D5DE0EDEAA29]
    // </editor-fold>
    private String titulo;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.F68C0598-1423-20BD-E781-72C4A863FBAB]
    // </editor-fold>
    private String autor;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.BA8BE3DF-7715-65D4-7AB6-6B709465982B]
    // </editor-fold>
    private String editorial;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.BE8A37AA-32D4-3192-1F0D-CB42CEB9CC1C]
    // </editor-fold>
    private int año;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.B191382F-335D-B9AF-E2DC-A5DDA94678EB]
    // </editor-fold>
    private int edicion;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.9366650B-8B1C-FA51-ED19-DCEBA73F8DC2]
    // </editor-fold>
    private String isbn;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.3C8B03F6-BA41-E834-910D-55A9EB27810A]
    // </editor-fold>
    public Libro (double precio, String title, String author, String editor,
            int year, int edition, String identificador){
        super(precio);
        setTitulo(title);
        setAño(year);
        setEdicion(edition);
        setEditorial(editor);
        setIsbn(identificador);
        setAutor(author);

    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yesregenBody=yess,id=DCE.A7B6876D-7D18-14CA-ABE9-171B0EAD5940]
    // </editor-fold>
    public String getAutor () {
        return autor;
    }


    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yesregenBody=yess,id=DCE.0D388883-34B9-D3E3-6BE6-253B90D53BB4]
    // </editor-fold>
    public void setAutor (String val) {
        this.autor = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yesregenBody=yess,id=DCE.2E140E97-6EAD-DC34-6A74-C9129FC10551]
    // </editor-fold>
    public int getAño () {
        return año;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yregenBody=yesyes,id=DCE.86E9CEAF-B3CB-1638-C810-3CE0AE81FB92]
    // </editor-fold>
    public void setAño (int val) {
        this.año = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.1F15AF20-952B-3410-38AA-0DB8CFD6FE11]
    // </editor-fold>
    public int getEdicion () {
        return edicion;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.F1B5F15E-E241-CB51-3F78-37022249D10F]
    // </editor-fold>
    public void setEdicion (int val) {
        this.edicion = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.7B8D224D-FCE5-B195-0A5E-E39E68D1DBC2]
    // </editor-fold>
    public String getEditorial () {
        return editorial;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.2A10C7C6-C893-DF21-017D-441FB12C0430]
    // </editor-fold>
    public void setEditorial (String val) {
        this.editorial = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.27D511DA-132B-B05A-C92B-7D0471C14A01]
    // </editor-fold>
    public String getIsbn () {
        return isbn;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.11190FB2-D479-3E85-75AB-4FC4017247DD]
    // </editor-fold>
    public void setIsbn (String val) {
        this.isbn = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.44E3668F-6D97-ABF7-E12A-545BA3639277]
    // </editor-fold>
    public String getTitulo () {
        return titulo;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regenregenBody=yesy=yes,id=DCE.07B45AD0-212F-6A11-26BD-881737916A26]
    // </editor-fold>
    public void setTitulo (String val) {
        this.titulo = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker ">
    // #[regen=yes,id=DCE.1452308E-BFDB-E8D3-82F0-C66D578ABF47]
    // </editor-fold>
    public class Unn{

    }

    public void imprimir() {
        System.out.println("Libro del Curso:");
        System.out.println(this.titulo);
        System.out.println(this.autor);
        System.out.println(super.getPrecio());
        System.out.println(this.año);
        System.out.println(this.edicion);
        System.out.println(this.editorial);
        System.out.println(this.isbn);
        System.out.println("*****************");
   }

}

